<h2>Edit Your Account</h2>

<%= error_messages_for :user %>
 
<% form_for(@user) do |f| %>

   <p>
   	<label for="name">Name</label><br/>
		<%= f.text_field :name %>
   </p>
    
   <p>
   	<label for="email">Email</label><br/>
		<%= f.text_field :email %>
	</p>
    
   <p>
      <label for="password">Change Password</label><br/>
      <%= f.password_field :password %>
   </p>
    
   <p>
      <label for="password_confirmation">Confirm Password</label><br/>
      <%= f.password_field :password_confirmation %>
   </p>
	
	<p><%= submit_tag 'Save' %> <%= link_to 'Cancel', @user %></p>

<% end %>